/*!
 * Custom JS- Honda Cars Project
 * Last Update : Aug 5, 2015
 */

// ---> Bootstrap Sliding Dropdown

	// Add slideDown animation to dropdown
	$('.dropdown').on('show.bs.dropdown', function(e) {
		$(this).find('.dropdown-menu').first().stop(true, true).slideDown();
	}); 
	
	// Add slideUp animation to dropdown
	$('.dropdown').on('hide.bs.dropdown', function(e) {
		$(this).find('.dropdown-menu').first().stop(true, true).slideUp();
	});

	$(document).ready(function() {    
  		$('.navbar-nav li.dropdown').hover(function() {
			$('ul.dropdown-menu', this).stop(true, true).slideDown('fast');
			$(this).addClass('open');
		}, function() {
			$('ul.dropdown-menu', this).stop(true, true).slideUp('fast');
			$(this).removeClass('open');
		});
   });


// ---> Slidebar

	(function($) {
        $(document).ready(function() {
          $.slidebars();
        });
      }) (jQuery);

// ---> Flexslider
	$(window).load(function() {
		$('.flexslider').flexslider({
			animation: "slide",
			slideshowSpeed : 7000,
		});
	});

// ---> Owl Carousel

    $(document).ready(function() {
		
		$(".slide-four").owlCarousel({
		 
		autoPlay: false,
		navigation: true,
		pagination: false,
		items : 4,
		itemsDesktop 		: [1199,4],
		itemsDesktopSmall 	: [979,3],
		itemsTablet 		: [768,2],
		itemsMobile			: [479,1],
		 
		});
		
		$(".slide-three").owlCarousel({
		 
		autoPlay: false,
		navigation: true,
		pagination: false,
		items : 3,
		itemsDesktop 		: [1199,3],
		itemsDesktopSmall 	: [979,2],
		itemsTablet 		: [768,2],
		itemsMobile			: [579,1],
		 
		});
     
    });

